<%@ page import="com.banan.util.Constant" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>密码本加密程序</title>
    <%--<script type="text/javascript" src="<%=Constant.HOST%>/js/jquery-3.1.0.min.js"/>--%>
    <script type="text/javascript" src="<%=Constant.HOST%>/js/jquery-3.1.0.min.js"></script>
    <script type="text/javascript">
        function startSub() {
            alert("开始提交");
            $.ajax({
                type: "post",
                url: "CreateSercet.jhtml",
                data: $('#form1').serialize(),
                dataType: "text",
                error: function () {
                    alert("当前ajax操作出错！");
                },
                success: function (msg) {
                    alert("操作结果：" + msg);
                }
            });

        }
    </script>
</head>
<body>
<h1>欢迎来到密码加密程序!</h1>
<div>
    <form id="form1" method="post">

        账号：<input type="text" name="account"/><br/>
        盐值：<input type="text" name="salt"/><br/>
        明文密码：<input type="text" name="passwordText"/><br/>
        <input type="button" value="解密" onclick="startSub();"/>
    </form>
</div>
</body>
</html>